<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs For Class Model</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
						<script src="../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../media/images/plus.png";
				imgMinus.src = "../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Model</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Описание</div>
	<div class="nav-bar">
					<span class="disabled">Описание</span> |
							<a href="#sec-descendents">Потомки</a>
			|											<a href="#sec-var-summary">Переменные</a> (<a href="#sec-vars">детали</a>)
						|											<a href="#sec-method-summary">Методы</a> (<a href="#sec-methods">детали</a>)
						
											<a href="#sec-const-summary">Константы</a> (<a href="#sec-consts">детали</a>)
						
			</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Базовый класс для работы с моделями</p>
	<ul class="tags">
				<li><span class="field">abstract:</span> </li>
			</ul>
		<p class="notes">
			Расположен в <a class="field" href="_core_model_php.html">/core/model.php</a> (строка <span class="field"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a15">15</a></span>)
		</p>
		
				
		<pre><a href="../myLiveShop/Base.html">Base</a>
   |
   --Model</pre>
	
			</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Прямые потомки</div>
		<div class="nav-bar">
			<a href="#sec-description">Описание</a> |
			<span class="disabled">Описание</span>
			|												<a href="#sec-var-summary">Переменные</a> (<a href="#sec-vars">детали</a>)
								|															<a href="#sec-method-summary">Методы</a> (<a href="#sec-methods">детали</a>)
							
															<a href="#sec-const-summary">Константы</a> (<a href="#sec-consts">детали</a>)
							
					</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Класс</th>
					<th class="class-table-header">Описание</th>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../myLiveShop/ModelTag.html">ModelTag</a></td>
					<td>
											Базовый класс для работы с моделями
										</td>
				</tr>
							</table>
		</div>
	</div>

	<a name="sec-const-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Константы класса</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Описание</a> |
							<a href="#sec-descendents">Потомки</a> |
						<span class="disabled">Константы</span> (<a href="#sec-consts">детали</a>)
												<a href="#sec-var-summary">Переменные</a> (<a href="#sec-vars">детали</a>)
				 
				|
										| 
									<a href="#sec-method-summary">Методы</a> (<a href="#sec-methods">детали</a>)
							
					</div>
		<div class="info-box-body">
			<div class="const-summary">
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#ASC" title="детали" class="const-name">ASC</a> = 					<span class="var-type"> 'ASC'</span>

				</div>
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#DESC" title="детали" class="const-name">DESC</a> = 					<span class="var-type"> 'DESC'</span>

				</div>
							</div>
		</div>
	</div>

	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Переменные</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Описание</a> |
							<a href="#sec-descendents">Потомки</a> |
						<span class="disabled">Переменные</span> (<a href="#sec-vars">детали</a>)
							| 
									<a href="#sec-method-summary">Методы</a> (<a href="#sec-methods">детали</a>)
							
															<a href="#sec-const-summary">Константы</a> (<a href="#sec-consts">детали</a>)
							
					</div>
		<div class="info-box-body">
			<div class="var-summary">
								<div class="var-title">
					<span class="var-type"><a href="../myLiveShop/DB.html">DB</a></span>
					<a href="#$db" title="детали" class="var-name">$db</a>
				</div>
								<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$fields" title="детали" class="var-name">$fields</a>
				</div>
								<div class="var-title">
					<span class="var-type">array;</span>
					<a href="#$id_field" title="детали" class="var-name">$id_field</a>
				</div>
								<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$name" title="детали" class="var-name">$name</a>
				</div>
							</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Методы</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Описание</a> |
							<a href="#sec-descendents">Потомки</a> |
															<a href="#sec-const-summary">Константы</a> (<a href="#sec-consts">детали</a>)
							
															<a href="#sec-var-summary">Переменные</a> (<a href="#sec-vars">детали</a>)
				 
				|
						<span class="disabled">Методы</span> (<a href="#sec-methods">детали</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#createWhere" title="детали" class="method-name">createWhere</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$id</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$params</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#delete" title="детали" class="method-name">delete</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$id</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">false</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">Model</span>
										<a href="#__construct" title="детали" class="method-name">__construct</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$className</span> = <span class="var-default">null</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#fieldByName" title="детали" class="method-name">fieldByName</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$name</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getField" title="детали" class="method-name">getField</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$table</span> = <span class="var-default">null</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#groupFields" title="детали" class="method-name">groupFields</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$fields</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#load" title="детали" class="method-name">load</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$id</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$fieldList</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">array()</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#loadOne" title="детали" class="method-name">loadOne</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$fieldList</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">array()</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#save" title="детали" class="method-name">save</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$data</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$id</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">false</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#set" title="детали" class="method-name">set</a>
										()
									</div>
							</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Переменные</div>
		<div class="nav-bar">
			<a href="#sec-description">Описание</a> |
							<a href="#sec-descendents">Потомки</a> |
										<a href="#sec-var-summary">Переменные</a> (<span class="disabled">детали</span>)
						
			
												<a href="#sec-const-summary">Константы</a> (<a href="#sec-consts">детали</a>)
							
										| 
									<a href="#sec-method-summary">Методы</a> (<a href="#sec-methods">детали</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$db" id="$db"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type"><a href="../myLiveShop/DB.html">DB</a></span>
			<span class="var-name">$db</span>
						(line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a32">32</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">база данных</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$fields" id="$fields"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$fields</span>
						(line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a50">50</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Массив полей</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$id_field" id="$id_field"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array;</span>
			<span class="var-name">$id_field</span>
						(line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a44">44</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Ключевые поля</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$name" id="$name"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$name</span>
						(line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a38">38</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Имя таблицы</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Методы</div>
		<div class="nav-bar">
			<a href="#sec-description">Описание</a> |
							<a href="#sec-descendents">Потомки</a> |
															<a href="#sec-var-summary">Переменные</a> (<a href="#sec-vars">детали</a>)
																			<a href="#sec-const-summary">Константы</a> (<a href="#sec-consts">детали</a>)
							
										<a href="#sec-method-summary">Методы</a> (<span class="disabled">детали</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodcreateWhere" id="createWhere"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">createWhere</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a293">293</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Создаём условие where на основе id и params['where']</p>
	<ul class="tags">
				<li><span class="field">return:</span> готовое условие</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			createWhere
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$id</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$params</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$id</span><span class="var-description">: число или массив указывающий на id для перезаписи</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$params</span><span class="var-description">: дополнительные параметры</span>			</li>
				</ul>
		
		
	</div>
<a name="methoddelete" id="delete"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">delete</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a276">276</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Удаляем данные</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			delete
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$id</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$id</span><span class="var-description">: число или массив указывающий на id для перезаписи</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$params</span><span class="var-description">: дополнительные параметры</span>			</li>
				</ul>
		
		
	</div>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a56">56</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Констуктор</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Model</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$className</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$className</span><span class="var-description">: имя подели</span>			</li>
				</ul>
		
			<hr class="separator" />
		<div class="notes">Переопределён в:</div>
		<dl>
			<dt><a href="../myLiveShop/Base.html#method__construct">Base::__construct()</a></dt>
						<dd>Коструктор</dd>
					</dl>
		
			<hr class="separator" />
		<div class="notes">Переопределён в потомке как:</div>
		<ul class="redefinitions">
					<li>
				<a href="../myLiveShop/ModelTag.html#method__construct">ModelTag::__construct()</a>
							</li>
				</ul>
	</div>
<a name="methodfieldByName" id="fieldByName"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">fieldByName</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a199">199</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Получаем поле по его имени если поле строка</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			fieldByName
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$name</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$name</span><span class="var-description">: имя поля</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetField" id="getField"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getField</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a179">179</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Получаем поле либо все поля таблицы</p>
	<ul class="tags">
				<li><span class="field">return:</span> or Field or false если поле не найденно</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getField
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$table</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: имя поля (если не указанно то вернёт все)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$table</span><span class="var-description">: имя таблицы (если не указанно то возмёт имя текущей таблици)</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgroupFields" id="groupFields"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">groupFields</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a162">162</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Собираем поля для запроса в массив строк</p>
	<ul class="tags">
				<li><span class="field">return:</span> массив строк</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			groupFields
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$fields</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$fields</span><span class="var-description">: массив полей или строк</span>			</li>
				</ul>
		
		
	</div>
<a name="methodload" id="load"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">load</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a71">71</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Загружаем данные</p>
	<ul class="tags">
				<li><span class="field">return:</span> результат выборки</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			load
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$id</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$fieldList</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">array()</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$id</span><span class="var-description">: array / string значения ключевых полей</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$fieldList</span><span class="var-description">: array / string список необходимых полейб по умолчанию берутся все</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$params</span><span class="var-description">: дополнительные параметры для выборки join, order, group, limit, where</span>			</li>
				</ul>
		
		
	</div>
<a name="methodloadOne" id="loadOne"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">loadOne</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a143">143</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Загружаем данные одной строкой</p>
<p class="description"><p>Автоматически добавляем one_row=true и limit=1</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> результат выборки</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			loadOne
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$fieldList</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">array()</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$id</span><span class="var-description">: array / string значения ключевых полей</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$fieldList</span><span class="var-description">: array / string список необходимых полейб по умолчанию берутся все</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$params</span><span class="var-description">: дополнительные параметры для выборки join, order, group, limit, where</span>			</li>
				</ul>
		
		
	</div>
<a name="methodsave" id="save"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">save</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a215">215</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Созраняем двнные</p>
	<ul class="tags">
				<li><span class="field">return:</span> true при обновлении или новый id при добавлении</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			save
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$data</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$id</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$data</span><span class="var-description">: массив данных где ключ это имя поля</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$id</span><span class="var-description">: число или массив указывающий на id для перезаписи</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$params</span><span class="var-description">: дополнительные параметры</span>			</li>
				</ul>
		
		
	</div>
<a name="methodset" id="set"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">set</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a60">60</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			set
		</span>
				()
			</div>
	
		
		
	</div>
							<h4>Наследуемые методы</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Наследует из <span class="classname"><a href="../myLiveShop/Base.html">Base</a></span></p>
					<blockquote>
													<span class="method-name"><a href="../myLiveShop/Base.html#method__construct">Base::__construct()</a></span><br>
											</blockquote>
										
		</div>
	</div>

	<a name="sec-consts"></a>
	<div class="info-box">
		<div class="info-box-title">Константы класса</div>
		<div class="nav-bar">
			<a href="#sec-description">Описание</a> |
							<a href="#sec-descendents">Потомки</a> |
										<a href="#sec-var-summary">Константы</a> (<span class="disabled">детали</span>)
						
			
												<a href="#sec-var-summary">Переменные</a> (<a href="#sec-vars">детали</a>)
														| 
									<a href="#sec-method-summary">Методы</a> (<a href="#sec-methods">детали</a>)
							
					</div>
		<div class="info-box-body">
			<a name="constASC" id="ASC"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">ASC</span>
			 = <span class="const-default"> 'ASC'</span>
			(line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a21">21</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Прямой тип сортировки</p>
	
	
</div>
<a name="constDESC" id="DESC"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">DESC</span>
			 = <span class="const-default"> 'DESC'</span>
			(line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__coremodel.php.html#a26">26</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Обратный тип сортировки</p>
	
	
</div>
						
		</div>
	</div>

	<p class="notes" id="credit">
		Документ создан Mon, 14 Feb 2011 01:08:53 +0200 в <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</div></body>
</html>